package app.dev.ems.data.model.impl;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Lob;
import javax.persistence.Table;

import app.dev.ems.data.element.SettingType;
import app.dev.ems.data.model.ISettings;
import app.dev.ems.support.annotation.Model;

@Model
@Entity
@Table(name="SETTINGS")
public class Settings extends Base implements ISettings {

	private static final long serialVersionUID = -7653804057152201876L;

	private BaseSettings settings;
	private SettingType settingType;
	
	public Settings() {
		
	}

	@Lob
	@Column(name="SETTINGS", columnDefinition="LONGBLOB")
	public BaseSettings getSettings() {
		return settings;
	}

	public void setSettings(BaseSettings settings) {
		this.settings = settings;
	}

	@Column(name="type")
	@Enumerated(EnumType.STRING)
	public SettingType getSettingType() {
		return settingType;
	}

	public void setSettingType(SettingType settingType) {
		this.settingType = settingType;
	}		
}
